package com.msh.starter.pinying.interfaces;

import com.msh.frame.interfaces.IPinying;
import java.util.Set;

public interface IPinyingIdx extends IPinying {

  /**
   * 转换拼音索引 英文
   * 例 8年X
   * 输出结果 ["8nianx","nianx","x","8nx","nx"]
   */
  Set<String> convertPinyinIdx(String str, int maxLen);

  /**
   * 转换汉字索引
   * 例 8年X
   * 输出结果 ["8年x","年x","x"]
   */
  Set<String> convertHanziIdx(String str, int maxLen);


  /**
   * 转换索引 包括中文英文
   * 例 8年X
   * 输出结果 ["8年x","年x","x","8nianx","nianx","8nx","nx"]
   */
  Set<String> convertIdx(String str, int maxLen);
}
